import { post, remove, get, put } from './api'
// import { read } from '../store/modules/init.js'
//获取所有的菜单权限
export const getfunMenuApi = () => {
    const url = '/usermgt/menu'
    const body = {
        args: JSON.stringify(['menu-logistics-track', 'menu-usermgt', 'menu-logistics-engine'])
    }
    return post(url, body)
}
//刷新所有的菜单权限
export const getReloadMenuApi = () => {
    const url = '/usermgt/menu/reload'
    return get(url)
}

//获取角色管理的事件订阅
export const getEventMenuApi = () => {
    const url = '/usermgt/event'
    return post(url)
}